import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";
import { createPinia } from "pinia";
import router from "./router";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import locale from "element-plus/lib/locale/lang/zh-cn";
import mapset from "./utils/map";
import mapevent from "./utils/mapevent";
import TrailLinkMaterial from './utils/migrate'

const app = createApp(App);
app.use(ElementPlus, { locale });
app.use(router);
app.use(createPinia());
app.config.globalProperties.$mapset = mapset;
app.config.globalProperties.$mapevent = mapevent;
app.config.globalProperties.$TrailLinkMaterial = TrailLinkMaterial;
app.mount("#app");
